<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreatePunishLogTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('punish_log', function (Blueprint $table) {
            $table->id();
            $table->integer('user_id')->comment('用户id');
            $table->tinyInteger('punish_type')->comment('惩罚类型：1禁止交易');
            $table->integer('punish_day')->comment('惩罚天数');
            $table->timestamp('end_time')->comment('惩罚结束时间');
            $table->tinyInteger('punish_status')->comment('惩罚状态：1惩罚中 2已结束');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('punish_log');
    }
}
